//
//  HXDiscountMoreCCell.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/14.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXDiscountMoreCCell.h"
#import "HX_Macro.h"
#import "HXRelatesModel.h"
@implementation HXDiscountMoreCCell
- (void)setRelateModel:(HXRelatesModel *)relateModel {
    _relateModel = relateModel;
    [self.moreImage sd_setImageWithURL:[NSURL URLWithString:relateModel.scene_background]];
    self.moreImage.layer.masksToBounds = YES;
    self.moreImage.contentMode = UIViewContentModeScaleAspectFill;
    self.name.text = relateModel.scene_title;
    self.detail.text = [NSString stringWithFormat:@"%ld道菜", relateModel.dishes_count];
}
- (void)awakeFromNib {
    // Initialization code
}

@end
